home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Plus SuperCD (UK) 1998 August
/
PC Plus SuperCD 50b Issue 142 (CD142b) (August 1998).iso
/
full
/
nt
/
IE401
/
x86
/
ieak4.CAB
/
random.cpp
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1997-08-04
|
301 b
|
11 lines
#include <stdlib.h>
#include <ctype.h>
#include "random.h"
//Select a random number generator not known by outsiders
//Anyone who knows the random number generator can guess the
//session handles of the serer and violate he security.
UINT random(UINT seed)
{
srand(seed);
return rand();
}